version: '3'
services:
  client:
    build:
      context: .
      dockerfile: ${DOCKERFILE:-Dockerfile}
    image: httpstress
    volumes:
      - "${CLIENT_DUMPS_SHARE}:${DUMPS_SHARE_MOUNT_ROOT}"
    links:
      - server
    environment:
      - HTTPSTRESS_ARGS=-runMode client -serverUri https://server:5001 ${HTTPSTRESS_CLIENT_ARGS}
  server:
    build:
      context: .
      dockerfile: ${DOCKERFILE:-Dockerfile}
    image: httpstress
    volumes:
      - "${SERVER_DUMPS_SHARE}:${DUMPS_SHARE_MOUNT_ROOT}"
    ports:
      - "5001:5001"
    environment:
      - HTTPSTRESS_ARGS=-runMode server -serverUri https://+:5001 ${HTTPSTRESS_SERVER_ARGS}
